package com.lagou.mmclass;

public class Student extends User {
    private int id;
    public Student(){}
    public Student(int id,String name,String password){
        setId(id);
        setName(name);
        setPassword(password);
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                "} " + super.toString();
    }
}
